package com.caigou.comm.base.bean

/**
 * @author #Suyghur.
 * Created on 2021/09/27
 */
class AppBackgroundInfo private constructor() {

    var hasLogin = false
    var userBean: UserBean? = null

    fun reset() {
        this.hasLogin = false
        this.userBean = null
    }

    override fun toString(): String {
        return "AppBackgroundInfo(hasLogin=$hasLogin, userBean=$userBean)"
    }


    companion object {
        val instance: AppBackgroundInfo by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) {
            AppBackgroundInfo()
        }
    }
}